﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AjaxEngine.Demo._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
<!--

        function Button2_onclick() {
            alert(Add(1, 2));
        }

        function Button3_onclick() {
            $.getJSON("Handler1.ashx", { method: "add", x: 1, y: 2 }, function (dt) {
                alert(dt);
            });
        }

// -->
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="Button1" runat="server" Text="我是Asp.net Button" OnClick="Button1_Click" />
        <input id="Button2" type="button" value="Html Button 调用页面方法" onclick="return Button2_onclick()" /><input
            id="Button3" type="button" value="Html Button 调用JsonHandler方法" onclick="return Button3_onclick()" /></div>
    </form>
</body>
</html>
